// vim:ft=cpp

#include <iostream>
#include <talos/IOPort.hpp>
#include <luabind/lua_include.hpp>
#include <luabind/luabind.hpp>
#include <talos/CamDriver.hpp>

extern "C" int init(lua_State* L)
{
    using namespace luabind;

    open(L);

    module(L)
    [
      class_< IOPort<cv::Mat> >("IOPort")
      .def(constructor<>())
      .def("push",&IOPortInt::push)
      .def("sync",&IOPortInt::sync),
      class_<CamDriver>("CamDriver")
      .def(constructor<int>())
      .def_readonly("img",&CamDriver::img)
    ];

    return 0;
}

